#ifndef PORT_EVENT_H
#define PORT_EVENT_H

#include "event.h"

int port_create_event_manager (int size);

int port_add_fd (int fd, int events);
int port_del_fd (http_connection_t *http_connection);

int port_del_listener (int fd);

int port_event_wait (int timeout);

int port_prepare_for_reading (http_connection_t *http_connection);
int port_prepare_for_writing (http_connection_t *http_connection);
int port_remove_notifications (http_connection_t *http_connection);

#endif /* PORT_EVENT_H */
